
from datetime import datetime

# ___author__ and __version__ are imported directly in __ini__.py
__all__ = [
    'APP_NAME',
    'LOG_FORMAT_CONSOLE', 'LOG_FORMAT_CFGFILE',
    'ZERO_HOUR',
]


APP_NAME = 'dotfilebackup'
LOG_FORMAT_DATE    = "%Y-%m-%d %H:%M:%S"
# %(levelname).4s log levels print: DEBU, INFO, WARN, ERRO, CRIT
LOG_FORMAT_CONSOLE = '%(levelname).4s: %(message)s'
LOG_FORMAT_CFGFILE = '%(asctime)s %(levelname).4s: %(message)s', LOG_FORMAT_DATE

class ZERO_HOUR:
    DATE_OBJ    = datetime.now()
    # DATETIME
    TIMESTAMP   = str(int(DATE_OBJ.timestamp()))  # cut 1748979674.178316 -> 1748979674
    # TIME
    HOUR        = DATE_OBJ.strftime('%H')
    MIN         = DATE_OBJ.strftime('%M')
    SEC         = DATE_OBJ.strftime('%S')
    # DATE
    DAY         = DATE_OBJ.strftime('%d')
    DAY_NAME    = DATE_OBJ.strftime('%A').lower()
    DAY_SHORT   = DATE_OBJ.strftime('%a').lower()
    WEEKDAY     = str(DATE_OBJ.weekday() + 1)  # 1(mon) - 7(sun)
    MONTH       = DATE_OBJ.strftime('%m').lower()
    MONTH_NAME  = DATE_OBJ.strftime('%B').lower()
    MONTH_SHORT = DATE_OBJ.strftime('%b').lower()
    YEAR        = DATE_OBJ.strftime('%Y')
    YEAR_SHORT  = DATE_OBJ.strftime('%y')
#
